package study.springboot.validation.controller.login;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@Data
public class LoginRequest {

    @NotNull(message = "登录名不能为空")
    private String loginName;
    @NotEmpty(message = "密码不能为空")
    private String loginPwd;
    @NotBlank(message = "验证码不能为空")
    private String authCode;
}
